<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>流程打回</title>
    <base target="_self"/>
    <%@include file="../jslib/jquerylib.jsp" %>
    <link rel="stylesheet" type="text/css" href="<%=path %>/web/style/layout.css" />
    <script type="text/javascript" src="<%=path %>/jslib/jquery.validate.min.js"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/jslib/jquery.form.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath() %>/jslib/additional-methods.js"></script>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type='text/javascript' >
		jQuery.post("junyansAction!getBackNodeList.action?taskinfoid=<%=request.getParameter("taskinfoid")%>",
							{"type" : "notall"},
							callBackNodeList,
							"json");
							
		function callBackNodeList(json){
			 	$("#backnodes").empty();
				var html = '<option value="">--请选择--</option>';
				  $('#backnodes').append(html);
				if(json!=''){
				$.each(json,function(entryindex,entry){
					html = '<option value="'+entry['ntid']+'">' + entry['convalue'] + '</option>';
					$('#backnodes').append(html);
				});
			}
		}
		
		function queren(){
			var backnode = $("#backnodes").val();
			window.returnValue = backnode;
			window.close();
		}
		
	</script>

  </head>
  
  <body>
     <table style='margin-top:20px;margin-left:20px;'>
     	<tr>
     	    <td>
     	    	请选择流程节点：
     	    </td>
     		<td>
     	    	<select id="backnodes" class='easyui-validatebox' name="backnodes"  style="width: 250px;"  > </select>
     	    </td>
     	</tr>
     	<tr>
     		<td colspan='2' style='text-align:center;'>
     			<button id="btnqueren" class="button_b" onclick="queren()" >确&nbsp;认</button><br /><br />
     		</td>
     	</tr>
     </table>
  </body>
</html>
